<?php
class Type extends AppModel {
	var $name = 'Type';
	var $displayField = 'name';
	var $validate = array(
            'name' => array(
                'isUnique' => array(
                                    'rule' => array('isUnique'),
                                    'message' => 'Este nombre ya ha sido asignado',
                                    //'allowEmpty' => false,
                                    //'required' => false,
                                    //'last' => false, // Stop validation after this rule
                                    //'on' => 'create', // Limit validation to 'create' or 'update' operations
                ),
                'notempty' => array(
                                    'rule' => array('notempty'),
                                    'message' => 'Campo Obligatorio',
                                    //'allowEmpty' => false,
                                    //'required' => false,
                                    //'last' => false, // Stop validation after this rule
                                    //'on' => 'create', // Limit validation to 'create' or 'update' operations
                            )
            )
	);
}
